<?php

/**

 * 站点信息 api

 * @author maniac

 */

namespace app\api\controller\v1;



use app\facade\Options AS OptionsFacade;

use app\facade\Site AS SiteFacade;



class Site extends Base

{

    /**

     * 获取客服电话

     */

    public function customerService()

    {

        $options = unserialize(OptionsFacade::option('shop_info'));

        return j(0, '获取成功', $options);

    }

    

    /**

     * 获取积分设置

     */

    public function pointsSetting()

    {

        $data = SiteFacade::pointsSetting();

        return j(0, '获取成功', $data);

    }

}

